//
//  AdvertiseDetailController.m
//  智慧小区
//
//  Created by lab603 on 15/7/13.
//  Copyright (c) 2015年 Dreamsoul. All rights reserved.
//

#import "AdvertiseDetailController.h"

@interface AdvertiseDetailController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *webView;
@end

@implementation AdvertiseDetailController
- (id)init{
    if (self = [super init]) {
        self.webView=[[UIWebView alloc]initWithFrame:self.view.frame];
        self.webView.scrollView.bounces=NO;
        self.webView.delegate=self;
        [self.view addSubview:self.webView];
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
   
}
/**
 *  初始化webView
 */
- (void)initWebView{
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:self.advertiseDetail]];
    [self.webView loadRequest:request];
}
- (void)setAdvertiseDetail:(NSString *)advertiseDetail{
    _advertiseDetail = advertiseDetail;
    //初始化webView
    [self initWebView];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
@end
